package com.mall.seckill_mall.dao;

import com.mall.seckill_mall.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDao {
    int insertOne(Order order);
    Order selectOne(String orderId);
    Order selectByUserAndGoods(@Param("userId") String userId, @Param("goodsId") String goodsId);
    List<Order> selectByUser(String userId);
    int deleteOne(String orderId);
    int updateOrderStatus(@Param("orderId") String orderId, @Param("orderStatus") int orderStatus);
}
